<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.0.js"></script>
    <script>
        function testActuatorCors() {
            $.ajax({
                url: "http://localhost:8080/actuator/metricstest/",
                type: "get",
                crossDomain: true,
                success: function (data, textStatus) {
                    console.log(data);
                }

            })
        }
    </script>
</head>
<body>
<button onclick="testActuatorCors()">Actuator跨域测试</button>

</body>
</html>